export const Utils = {
  deepCopyObject(obj: any): any{
    if (typeof obj !== 'object' || obj === null) {
      return obj;
    }
    const copy = new obj.constructor();
    Object.keys(obj).forEach(key => {
      copy[key] = this.deepCopyObject(obj[key]);
    });
    return copy;
  }
}
